home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / ici / ici.cpi / win.h < prev    next >
C/C++ Source or Header  |  1994-10-27  |  795b  |  35 lines

  1. #ifndef    ICI_WIN_H
  2. #define    ICI_WIN_H
  3.  
  4. #ifndef    ICI_OBJECT_H
  5. #include "object.h"
  6. #endif
  7.  
  8. typedef struct win    win_t;
  9. struct win
  10. {
  11.     object_t    o_head;
  12.     short    w_nlines;
  13.     short    w_ncols;
  14.     win_t    *w_up;        /* The window closer to the user. */
  15.     win_t    *w_down;    /* The window further from the user. */
  16.     short    w_cline;    /* Where the cursor is in this win. */
  17.     short    w_ccol;        /* " */
  18.     short    w_atline;    /* It's top left in screen space. */
  19.     short    w_atcol;    /* " */
  20.     short    w_mindirt;    /* Lowest effected line number. */
  21.     short    w_maxdirt;    /* Greatest effected line number. */
  22.     short    w_flags;
  23.     char    *w_end;
  24.     char    *w_image;
  25. };
  26. #define    winof(o)    ((win_t *)(o))
  27. #define    iswin(o)    ((o)->o_type == &win_type)
  28.  
  29. #define    W_ISDIRTY    0x0001
  30.  
  31. #define    W_CENTRE    -1
  32.  
  33. extern type_t    win_type;
  34. #endif
  35.